package main.IOStream;

import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class CharRW {
    public static void main(String[] args) {
        File f = new File("data//studentScore.xls");
        try{
            FileReader in = new FileReader(f);
            char[] ch = new char[10];
            int len = 0;
            while((len = in.read(ch))!=-1){
                System.out.println(new String(ch,0,len));
            }
            in.close();
        }catch (IOException e){
            e.printStackTrace();
        }
//          File f = new File("data//charOut.txt");
//          try{
//              FileWriter out = new FileWriter(f,true);
//              out.write("我是帅哥哈哈哈");
//              out.flush();
//              out.close();
//          }catch (IOException e){
//              e.printStackTrace();
//          }

    }
}
